﻿using System;
using System.Collections.Generic;
using System.Text;
using Barbar.Colonization.Core;

namespace Barbar.Colonization.Model {
  public class Game {
    private IRuleSet m_RuleSet;
    private World m_World;

    public World World {
      get { return m_World; }
    }

    public IRuleSet RuleSet {
      get { return m_RuleSet; }
      internal set { m_RuleSet = value; }
    }

    internal void CreateWorld(int width, int height) {
      if (m_RuleSet == null)
        throw new ColonizationException("RuleSet must be set before calling CreateWorld.");
      m_World = new World(m_RuleSet, width, height);
    }
  }
}
